package game.leon.seawar.server;

import game.leon.engine.net.GameSession;
import game.leon.engine.net.codec.GameRawMessage;

/**
 * User: bianpeng
 * Date: 11-12-29
 */
public class GameMessage {
    private GameSession session;
    private GameRawMessage rawMessage;
    public GameMessage(GameSession session, GameRawMessage rawMessage) {
        this.session = session;
        this.rawMessage = rawMessage;
    }
    public GameRawMessage getRawMessage() {
        return rawMessage;
    }
    public GameSession getSession() {
        return session;
    }
    public int getMessage() {
        return rawMessage.getMessage();
    }
}
